/*
 * MWS Admin v2.0.2 - Dashboard Demo JS
 * This file is part of MWS Admin, an Admin template build for sale at ThemeForest.
 * All copyright to this file is hold by Mairel Theafila <maimairel@yahoo.com> a.k.a nagaemas on ThemeForest.
 * Last Updated:
 * October 21, 2012
 *
 */

;(function( $, window, document, undefined ) {

    $(document).ready(function() {
        // Data Tables
        if( $.fn.dataTable ) {
            var oTable = $(".mws-datatable").dataTable({
                "bProcessing": true,
                "bServerSide": true,
                "sAjaxSource": "/Queue/Pagination", 
                "bFilter": true,
                "bInfo": true,   
                "sPaginationType" : "full_numbers",   
                "aoColumns": [
                    {"mData" : "id" }, 
                    {"mData" : "type" },
                    {"mData" : "flow" }, 
                    {"mData" : "tRN" }, 
                    {"mData" : "currency" }, 
                    {"mData" : "amount" },
                    {"mData" : "lastLog" },
                    {"mData" : "modifiedOn" }
                ],
                "aaSorting": [[ 7, "asc" ]],
                "oLanguage": {
                    "sSearch": "Search TRN : "
                },
                "sServerMethod": "POST"
            });
            oTable.fnFilterOnReturn();
        }
    });

}) (jQuery, window, document);